package ProxyPattern.staticProxy;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author： pang-yun
 * @date： 2021-10-25 14:43
 * 功能目的 ：用于
 */
@Data
@AllArgsConstructor
public class TeacherProxy implements ITeacherDao{

    private ITeacherDao iTeacherDao;

    @Override
    public void teach() {
        System.out.println("代理开始");
        iTeacherDao.teach();
        System.out.println("代理结束");
    }
}
